<template>
	<view class="">
		demo2页面
		<button @click="goBack">返回上一页</button>
	</view>
</template>

<script setup>
onLoad((e)=>{
	console.log(e)
})
function goBack(){
	uni.navigateBack({
		delta: 1
	})
}

onShow(()=>{
	console.log('当前页面层级', getCurrentPages())
})
</script>

<style lang='scss' scoped>

</style>
